package com.aisile.apis.admin;

import com.aisile.model.admin.dtos.ChannelDto;
import com.aisile.model.admin.pojos.AdChannel;
import com.aisile.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @Auther:yry
 * @Date:2024/4/22 0022
 * @VERSON:1.0
 */
@Api(value = "频道管理", tags = "AdChannelControllerApi", description = "频道管理API文档")
public interface AdChannelControllerApi {

    /**
     * 根据条件以及分页查询数据
     *
     * @param dto channeldto对象
     * @return 统一返回类
     */
    @ApiOperation("查询频道信息支持分页按照名称模糊查询")
    public ResponseResult findListByPage(ChannelDto dto);

    /**
     * 添加
     *
     * @param adChannel
     * @return
     */
    @ApiOperation("保存频道信息")
    public ResponseResult saveAdChannel(AdChannel adChannel);

    /**
     * 修改
     *
     * @param id        要求改数据的id
     * @param adChannel 待修改的对象
     * @return
     */
    @ApiOperation("修改频道信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "频道id",required = false,readOnly = true),
            @ApiImplicitParam(name = "adChannel",value = "频道对象",required = true)
    })
    public ResponseResult updateAdChannel(Integer id, AdChannel adChannel);

    /**
     * 有效
     *
     * @param id
     * @return
     */
    @ApiOperation("保存频道信息状态-有效")
    @ApiImplicitParam(name = "id",value = "频道id",defaultValue = "1",required = true)
    public ResponseResult updateStatusTrueById(Integer id);

    /**
     * 无效
     *
     * @param id
     * @return
     */
    @ApiOperation("保存频道信息状态-无效")
    public ResponseResult updateStatusFalseById(Integer id);


}
